package cn.stylefeng.guns.modular.gridsystem.mapper;

import cn.stylefeng.guns.modular.gridsystem.model.param.BizGatewayChannelParam;
import cn.stylefeng.guns.modular.gridsystem.model.result.BizGatewayChannelResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.stylefeng.guns.modular.gridsystem.entity.BizGatewayChannel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * biz_gateway_channel Mapper 接口
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
public interface BizGatewayChannelMapper extends BaseMapper<BizGatewayChannel> {

    Page<BizGatewayChannelResult> pageList(@Param("page")Page page, @Param("param") BizGatewayChannelParam param);

    Integer countByDIdAndChannel(@Param("param") BizGatewayChannelParam param);

    List<BizGatewayChannelResult> listByGId(@Param("param") BizGatewayChannelParam param);

    BizGatewayChannel gatewayChannelByCodeAndChannel(@Param("param") BizGatewayChannelParam param);
}
